ModernUI Library Data Types

The following typedef or data types are used to help with documentation of ModernUI function parameters and return values, and with syncing ModernUI x86/x64 development by using one include file for both architectures: ModernUI.inc

ModernUI Data Types

These data types are specific to the ModernUI library:

Data type x86 size x64 size
MUIWND DWORD QWORD
MUIPROPERTIES DWORD QWORD
MUIPROPERTY DWORD QWORD
MUIPROPERTYVALUE DWORD QWORD
MUIVALUE DWORD QWORD
LPMUIVALUE DWORD QWORD
MUIIT DWORD QWORD
MUIIL DWORD QWORD
MUIPFS DWORD QWORD
MUICOLORRGB DWORD QWORD
MUICOLORARGB DWORD QWORD
MUIIMAGE DWORD QWORD
LPMUIIMAGE DWORD QWORD

GDI+ Data Types

These data types expand on or add to some of the GDI+ data types:

Data type x86 size x64 size
GPGRAPHICS DWORD QWORD
LPGPGRAPHICS DWORD QWORD
GPRECT DWORD QWORD
LPGPRECT DWORD QWORD
LPGDIPRECT DWORD QWORD
GPIMAGE DWORD QWORD
LPGPIMAGE DWORD QWORD

Common Data Types

These data types expand on or add to some of the common Windows data types:

Data type x86 size x64 size
LPRECT DWORD QWORD
LPHBITMAP DWORD QWORD
LPHDC DWORD QWORD
POINTER DWORD QWORD
RESID DWORD QWORD

Data Types Description

MUIWND

Alias for HWND window handle for a ModernUI control handle, typically defined as hWin

MUIPROPERTIES

For cbWndExtraOffset parameter of MUIAllocMemProperties and MUIFreeMemProperties functions: MUI_INTERNAL_PROPERTIES or MUI_EXTERNAL_PROPERTIES

MUIPROPERTY

Enum for a specific ModernUI Control’s property, using the Property parameter of MUIGetIntProperty, MUISetIntProperty, MUIGetExtProperty and MUISetExtProperty functions. See specific control for a list of its defined properties

MUIPROPERTYVALUE

Value of specific ModernUI Control’s property, using the PropertyValue parameter of MUISetIntProperty or MUISetExtProperty functions

MUIVALUE

A value, a constant or typically an unsigned integer used in certain ModernUI function parameters

LPMUIVALUE

A pointer to a MUIVALUE value

MUIIT

Image type: MUIIT_NONE, MUIIT_BMP, MUIIT_ICO or MUIIT_PNG

MUIIL

Image location: MUIIL_CENTER, MUIIL_BOTTOMLEFT, MUIIL_BOTTOMRIGHT, MUIIL_TOPLEFT, MUIIL_TOPRIGHT, MUIIL_TOPCENTER, MUIIL_BOTTOMCENTER

MUIPFS

Paint frame style flags for the FrameStyle parameter of the MUIGDIPaintFrame function using a combination of flags: MUIPFS_NONE, MUIPFS_LEFT, MUIPFS_TOP, MUIPFS_BOTTOM, MUIPFS_RIGHT or MUIPFS_ALL

MUICOLORRGB

COLORREF color value using MUI_RGBCOLOR macro

MUICOLORARGB

ARGB color value using MUI_ARGBCOLOR macro

MUIIMAGE

A bitmap (HBITMAP), icon (HICON) or a GDI+ image (GPIMAGE)

LPMUIIMAGE

Pointer to a image (MUIIMAGE) handle

GPGRAPHICS

GDI+ graphics context

LPGPGRAPHICS

Pointer to a graphics context (GPGRAPHICS)

GPRECT

Alias for GDIPRECT, a rectangle using REAL4 (float) for coordinates

LPGPRECT

Pointer to GPRECT

LPGDIPRECT

Pointer to GDIPRECT

GPIMAGE

A GDI+ image

LPGPIMAGE

Pointer to GDI+ image (GPIMAGE)

LPRECT

Pointer to RECT

LPHBITMAP

Pointer to GDI bitmap (HBITMAP)

LPHDC

Pointer to HDC

POINTER

A pointer

RESID

A resource id value